package com._520it._03_many2one_one2many.mapper;

import com._520it._03_many2one_one2many.domain.Employee;

import java.util.List;


public interface EmployeeMapper {

    void save(Employee employee);

    //额外SQL方式
    Employee get(Long eid);

    //显式连接方式
    Employee get1(Long eid);

    void  updateRelation(Long  deptId);

    List<Employee> list();

    //================one2many=================
    Employee selectEmpByDeptId(Long deptId);
}
